<?php
/**
 * Created by PhpStorm.
 * User: xuhongyi
 * Date: 2019/10/25
 * Time: 15:54
 */
session_start();
$server=$_GET['server'] ? $_GET['server'] :false;   //查看对方有没有携带回调地址域名
if(empty($_SESSION['username'])){
    if ($server){
        header('Location:./user_center.php?server='.$server);
        exit;
    }
    header('Location:./user_center.php');
    exit;
}
header('Location:http://'.$server.'?access_token='.session_id());
